package cn.maidouya.pet.service;

import cn.maidouya.basic.service.BaseService;
import cn.maidouya.pet.domain.Pet;
import cn.maidouya.pet.domain.Pet;
import cn.maidouya.pet.domain.PetDetail;
import cn.maidouya.user.domain.Logininfo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface IPetService extends BaseService<Pet> {
    // 服务和详情页回显
    PetDetail loadDetailByPetId(Long id);
    // 批量上架和批量下架
    void onOROffSale(List<Long> ids, int i);
    //  批量删除
    void batchDelete(List<Long> ids);
    // 右侧经典搭配查询
    List<Pet> loadMatch();
    // 宠物和宠物详情页展示
    Pet loadByPetDetail(Long id);
    // 领养宠物
    void adopt(Long id, Long logininfoId);
}